python window icon on task bar

30

import ctypes

aumid = u'CompanyName.ProductName.SubProduct.VersionInformation' # must be unicode
# See https://docs.microsoft.com/en-us/windows/win32/shell/appids for information
# And see https://stackoverflow.com/a/1552105/14586140 for why this works
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(aumid)

Comments

Submit
0 Comments